﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.MakeStaticPagingComponent.TemplateTag
{
    /// <summary>
    /// 页面模板标签请求模型
    /// </summary>
    public class TemplateTagRequestDto
    {
       
        /// <summary>
        /// 标记名称
        /// </summary>
        [Display(Name = "页面名称")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(100, MinimumLength = 1, ErrorMessage = "{0} 长度应为 {2} 到 {1} 个字符。")]
        public string TagName { get; set; }

        /// <summary>
        /// 标记说明
        /// </summary>
        [Display(Name = "标记说明")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(400, MinimumLength = 1, ErrorMessage = "{0} 长度应为 {2} 到 {1} 个字符。")]
        public string TagDescription { get; set; }
        /// <summary>
        /// 标签值
        /// </summary>
        [Display(Name = "标签值")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(18000, MinimumLength = 1, ErrorMessage = "{0} 长度应为 {2} 到 {1} 个字符。")]
        public string TagValue { get; set; }
    }
}
